package com.rzjm.exercise.module.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rzjm.exercise.common.base.service.impl.BaseServiceImpl;
import com.rzjm.exercise.module.dao.OAMessageDao;
import com.rzjm.exercise.module.domain.OAMessage;
import com.rzjm.exercise.module.service.OAMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class OAMessageServiceImpl extends BaseServiceImpl<OAMessageDao, OAMessage> implements OAMessageService {

    @Resource
    private OAMessageDao oaMessageDao;

    @Override
    public List<OAMessage> getPageByUserId(Page<OAMessage> page, Map<String, Object> map) {
        return oaMessageDao.getPageByUserId(page,map);
    }

    @Override
    public Integer getOAMessageCount(Map<String, Object> map) {
        return (Integer)oaMessageDao.getOAMessageCount(map);
    }
}
